package com.lh.common;


import com.lh.process.engine.context.ProcessContext;
import com.lh.process.engine.process.RollBackProcessor;

public class RollbackProcessorThrowExceptionDemo extends RollBackProcessor {

    @Override
    public void processInternal(ProcessContext context) {
        System.out.println(Thread.currentThread().getName() + " - RollbackProcessorThrowExceptionDemo " + context.get("nextId"));
        int i = 1 / 0;
    }

    @Override
    public void rollback(ProcessContext context) {
        System.out.println("rollback RollbackProcessorThrowExceptionDemo " + context.get("nextId"));
    }
}